{extend name="index/index"}
{block name="body"}
<div id="login">
    <form data-login-form onsubmit="return false" method="post" class="layui-anim layui-anim-upbit" autocomplete="off">
        <h1>
            <strong>{:sysconf('site_name')}</strong>
            <em class="en-font">{:sysconf('app_name')}<span class="padding-left-5">{:sysconf('app_version')}</span></em>
        </h1>
        <div class="user info">
            <label>U</label>
            <input type="text" name="username" class="en-font" placeholder="账号" autofocus autocomplete="off">
        </div>
        <div class="pwd info">
            <label>P</label>
            <input type="password" name="password" class="en-font" placeholder="密码" maxlength="32" autocomplete="off">
        </div>
        <div class="verify info layui-hide">
            <label>V</label>
            <input type="text" name="verify" class="en-font" placeholder="验证码" maxlength="4" autocomplete="off">
            <span class="vimg">
                <div data-captcha="{:url('captcha',[],false)}" data-field-verify="verify" data-field-uniqid="uniqid" data-captcha-type="{$captchaType}" data-captcha-token="{$captchaToken}"></div>
            </span>
        </div>
        <div class="sub">
            <input type="submit" data-login="{:url('index')}" value="立即登录">
        </div>
        <div class="copy">
            <div class="site">{:sysconf('site_copy')}</div>
            <div class="beian padding-top-5">
                {if sysconf('beian')}<a target="_blank" href="http://beian.miit.gov.cn">{:sysconf('beian')}</a>{/if}
                {if sysconf('beian') and sysconf('miitbeian')}<span class="padding-5">|</span>{/if}
                {if sysconf('miitbeian')}<a target="_blank" href="http://beian.miit.gov.cn">{:sysconf('miitbeian')}</a>{/if}
            </div>
        </div>
    </form>
</div>
<div class="auth">
    <div class="loading">
        <div class="loader-inner ball-clip-rotate-multiple">
            <div></div>
            <div></div>
        </div>
    </div>
    <p>验证中...</p>
</div>
{/block}

{block name='style'}
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<script>if (location.href.indexOf('#') > -1) location.replace(location.href.split('#')[0])</script>
<link rel="stylesheet" href="__ROOT__/static/theme/css/login.css">
{/block}

{block name='script'}
<script src="__ROOT__/static/login.js"></script>
<script src="__ROOT__/static/plugs/supersized/supersized.3.2.7.min.js"></script>
{/block}